package com.zhb.cloud.mybatis.sys.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;

import com.zhb.cloud.mybatis.sys.model.User;

public interface UserRepository
		extends JpaRepository<User, String>, JpaSpecificationExecutor<User>, QueryDslPredicateExecutor<User> {
	/**
	 * @Title: findByUserName
	 * @Description: 根据用户名查询
	 * @param username
	 * @return User
	 * @author: zhb
	 * @throws 2017年4月20日上午10:14:03
	 */
	User findByUserName(String username);

	User findByPhone(String phone);

}
